let nav_menu = require('./menu/nav');
let guide_menu = require('./menu/guide');
let components_base = require('./menu/components_base');
let components_form = require('./menu/components_form');
let components_layout = require('./menu/components_layout');
let components_draw = require('../components/draw/components_draw');
let components = [
    components_base.outline,
    components_form.outline.input,
    components_form.outline.picker,
    components_form.outline.radio,
    components_form.outline.checkbox,
    components_form.outline.high,
    components_form.outline.other,
    components_layout.outline,
    components_draw.outline
];
let template = require('./menu/template');
let nativesupport_third_sdk = require('./menu/nativesupport_third_sdk');

let baseLink = '';
// let BUILDTYPE = process.env.BUILDTYPE || '';
// if (BUILDTYPE == 'shiyun') {
//     baseLink = '/docs/ggui-mobile/';
// }

module.exports = {
    title: 'GGUI - 一套代码运行多端 | 一端所见即多端所见 - uni-app UI框架',
    subtitle: '123',
    author: '孙旭东',
    //description: 'Just playing around',
    markdown: {
        // 显示行号
        lineNumbers: true,
        extractHeaders: ['h2', 'h3', 'h4']
    },
    base: baseLink,// #设置站点根路径
    head: [
        ['link', { rel: 'icon', href: `/logo.png` }],
        ['style', {}, "a[title='站长统计'] {display: none;}"],
        ['meta ', { name: 'keywords', content: 'ggui,gg-ui,gg,ui,ui组件,gg-ui使用教程,uni-app组件,vue组件' }],
        ['meta ', { name: 'description', content: 'gg-ui是一款高性能，简洁、快速开发的ui组件；基于uniapp开发；全端兼容的基于flex布局的、无dom的ui库;目前为止，在小程序和混合app领域，高性能的框架；自动差量更新数据；可按需引入必要的扩展组件。' }],
        ['script ', { type: 'text/javascript', src: 'https://s4.cnzz.com/z_stat.php?id=1279265777&web_id=1279265777' }],
    ],
    dest: "./dist/build/docs/",
    plugins: [['vuepress-plugin-code-copy', true]],
    themeConfig: {
        logo: {
            img: '/logo.png',
            link: '/',
            heroText: 'ggui-logo',
        },
        nav: nav_menu.outline,
        repo: 'https://gitee.com/www_10yun/ggui-mobile', // git 仓库
        repoLabel: '查看源码', // git 仓库显示文字
        docsDir: 'docs',
        docsBranch: 'master',
        editLinks: true,
        editLinkText: '在 <码云> 上编辑此页面！',
        smoothScroll: true, //开启滚动效果
        sidebarDepth: 0, //嵌套标题深度
        lastUpdated: '更新时间', // 最后更新时间
        sidebar: {
            '/guide/': [guide_menu.outline],
            '/components/': components,
            '/components_draw/': components,
            '/template/': [template.outline],
            '/nativesupport/': [nativesupport_third_sdk.outline],
        }
    }
}
